<%@ tag language="java" pageEncoding="UTF-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<fmt:bundle basename="bundle">
	<fmt:message key="INDEX_BUTTON3_TITLE" var="title" />
	
	<fmt:message key="TOOLTIPT_NEW_CV" var="tooltip" />
	
	<fmt:message key="INDEX_BUTTON3_LABEL1" var="label1" />
	<fmt:message key="INDEX_BUTTON3_LABEL2" var="label2" />
	<fmt:message key="INDEX_BUTTON3_LABEL3" var="label3" />
	<fmt:message key="INDEX_BUTTON3_LABEL4" var="label4" />
	<fmt:message key="INDEX_BUTTON3_LABEL5" var="label5" />
	
</fmt:bundle>

<%@ attribute name="newCVCounter" description="n. di candidature" required="true"%>
	
	<dl>
		<dt>${title}</dt>
		<c:choose>
			<c:when test="${newCVCounter>0}">
				
			   	<dd>
			   		<a 	href="javascript:getTarget('candidato.listIncoming','news','','ListaIncomingCandidature');"
						title="${tooltip}"
					>
						<img class="img" src="./img/newCV.jpg" />
					</a>
			   		
			   	</dd>
			   	<dd>${label1}<b><%= newCVCounter %></b>${label2}</dd>
			   	<dd>
			   		${label3}
			   		<a 	href="javascript:getTarget('candidato.listIncoming','news','','ListaIncomingCandidature');"
						title="${tooltip}"
					>
						${label4}
					</a>
			   	</dd>
			</c:when>
			
			<c:otherwise>
		  		<dd><img class="img" src="./img/oldCV.jpg" alt="Nessun CV caricato di recente"/></dd>
		  		<dd>${label5}</dd>
		   	</c:otherwise>
		</c:choose>
	</dl>